magic module patched to use extension guess when the mimetype is text/plain (too generic)