libmagic fixes

Couple of fixes that allow me to run soscleaner on F20 using the distro-provided python-magic bindings.