git-apply: normalize file mode when comparing with expected value