Fix basic.t for running on Windows, or with an older git version

There is no executable bit on Windows, so including it in tests is rather fragile.

Also `git commit --allow-empty-message` requires 1.7.0.5 or later (and combining it with --amend is broken until an even later version, but the test doesn't use --amend).