remove directory aliases
use TMPDIR for dtacher
use `file` to match on mime types instead of file extensions in archive module