fix issues while using ADMS as subproject in CMake
output of perl files depend on calling location

* if the maintainer mode is used, the files end up on the top dir