Fixed isGitDir to return true for bare git repos
Fixed repos initialization