changed to correctly make directory for output file in cover_compress