Open directory path instead of project path

This ensures that the repository opened is always project’s
path instead of the potentially non-existent path or file
specified to Project::setPath