fix cwd when declared in config