Returns the project directory for the given path.
The path to search upward from.
The project root directory, or undefined if not found.
Returns the project directory for the given path.