build.py: modify cpack_generator only if `--pack` option present