file: Add patch from upstream toresolve issue with detecting windows binaries.