Correctly pass environment variables in the Nginx config file to application processes. Fixes issue #371.
Handle some more ECONNRESET conditions.
Fix support for RVM mixed mode installations (issue #828).