Only search in PATH if --cwd is not set