simplify check_cflags.sh