Allow overriding cwd