Added isdir check to compressfilelist