Make generate-patchlist.sh compatible with FreeBSD.