Parse git_dir into project reference