Fix .gitignore according to http://stackoverflow.com/questions/1139762