fix issue #483
Merge pull request #438 from sopitz/develop

protect git files/directories