fixed file magic usage
add install make target