compress a folder to a target file. The function returns the complete path to target file.
pack_folder(folder, target)
folder
folder to compress
target
path of the archive to create