[FEATURE][DISTRIBUTION] Add capacity to create a tar.gz

Here is a pull request to allow the package phase to create a tar.gz or a zip file, depending on the fileExtension parameter.