fix file magic usage