Fixes issue #534. 

.gitignore template renamed to gitignore, and after copying to destination folder it get renamed back