Fall back to Python's mimetype module if libmagic is not available