add a rough check on the libmagic library version for the libmagic bug workaround