use path.join to build default CONFIG_DIR value

Currently the default CONFIG_DIR variable is built using process.cwd(), however node may not always be running in the same directory as the application, which can lead to odd behaviour. Using path.join(__dirname, 'config') should make things a little more robust whilst retaining the original intention (I think!).