Replace dashes with underscores in uppercase version

DUNE modules are allowed to have more than one dash, and *all* of
them should be converted to uppercase (but in CMake, underscore is
not the uppercase of dash)