Check if a path is CWD