Removed CMP00017 policy setting as it breaks the build for older CMake versions
Extended remake_pack_deb() to perform variable substitution in files passed via the EXTRA argument