added check for existing .git file