fixed issue with bad cwd