fix issue when a project is created with a local path to a repository

Issue has been checked on a Linux machine.
Issue has not been tested on a Windows machine.