switched cwd value to config, config can be loaded from js file