Fixed environments variables for npm

They will now be persistent and set as variables.
Merge pull request #1 from guzmo/master

Fixed environments variables for npm