adds .gitignore
Fix when the path does not exist