Merge pull request #50 from wibblymat/master

Ported to node, closes #1
Use the proper environment variable