Removing automatically created file in compilation and updating .gitignore