Fix cmake error when the Module path has more than one entry.

CMAKE_MODULE_PATH is usually a list instead of single entry. Especially
for projects contain sub cmake projects. The patch I writen use fix
path to locate the `.in` file. Parameterizing the path might be a
solution with better portability.