Fix binfmt detection.