Update handling of deployment environment variables in config so that rake tasks run accordingly under development/production