Split up writing of Rails config files

Also rename the source from .env.erb to env.sh.erb