Revert "check-fmt: some changes to the script"

This reverts commit 2542d2c64fa054e6dc8ebbf3f9baa8c645e4d5bd.

Conflicts:
	check-fmt.sh