main/Makefile.am: use --pretty instead of --format to support older Git versions