Added -lm, -m, and -md switches for file filtering by mimetype