fixed problems with git directories