Fix latest commit creating .gitignore directories instead of a file