Makefile: fix MAKEFLAGS tests with multiple flags