fixed environmental variables to work with nginx and local development without sudo