get cwd from file instead of options