cmMakefile: Simplify GetModulesFile decision logic

After removing CMP0017, the logic can be simpler.
1 file changed