git-am foreign patch support: autodetect some patch formats