Only load the dependencies needed for the serve command if the serve command is being run. This allows Vagrant to properly load on platforms where some of the dependency libraries may not be available due to incompatibilities or being EOL.