Use environment-level variables for frontend (fixes #7728)

The frontend was not having the `rails_env` set properly when `/usr/local/sbin/start_unicorn_frontend.sh` was built; this should fix that.