Ignore certain files when unpacking submission.

We don't want to include the .git directory or any .DS_Store
files that get uploaded from OS X.

Some editors use autosave files with a trailing ~ so those
are ignored as well.