Improve defines heuristic.

 * Now usable (works for all defines in Valama project).
 * Still issues after enabling new defines (and after remove defines).