Changed how configPath is found.

I ran into the issue where this module wasn't working for test suites like Jasmine. For example, if you run `jasmine-node spec` you would get the wrong file path and a silly error about `test_config.json` not being found.

I also improved the readability of how color is chosen based on environment. Switch statements FTW!