Fix generation of '.gitignore' file