use mimemagic instead of ruby-filemagic