fix passing path instead of extension to util.isBinary