Removed the ugly hack and added more lines in the .gitignore