This is less brittle and breaks loud if the code changes. Also remove the /usr/bin/file patch. It is not really required for the build to work, the generated warning is harmless.