Updated how configPath is calculated so that it works with testing suites like jasmine, etc.