Generate .gitignore instead of copying it. Closes #1