Bugfix/gitignore spaces

This will fix the generated .gitignore which contains spaces at the end of a line. This will lead to ignoring "folders\ " instead of "folders".