workaround a libmagic mimetype detection bug for office documents
add a rough check on the libmagic library version for the libmagic bug workaround
add a generic function to test libmagic version
Merge branch '0.3.4-workaround-libmagic-bug-630'