Utilities for packing a directory's contents into a tar file with filtering