Adapt .gitignore to ignore temporary Linux files and local files.