changes the generator to put the env file in the right path.
properly wraps loading the environment in a rescue.