Fixed check for custom cflags