Update index.js

Added lowercase conversion of environment variable. On OS X, this variable is returned lowercase. On Linux, it will be returned uppercase, which will cause other code which attempts to load test.json, or any other environment-specifically-named file to fail on Linux.
Merge pull request #6 from alsoicode/master

Update index.js