fix that predefined CFLAGS etc. are ignored

add detection for invalid option values - fixes #518

(0) -100 -30 -10 -2 +2 +10 +30 tip

mercurial