Smarter .gitignore (thanks @rpflorence)