.gitignore all names with "~"

The exclusion of "~" is extended to anywhere in a name, preventing any
collisions with Windows via short file names.