[release, am2cmake] Fixes not traversing directories listed in SUBDIRS after test.
[release,cmake] Use uppercase for CMake type in variables.