Minor refactorings
Allowing bare repositories (i.e when Git files reside in the own project path, not in the '.git' folder)