fix sh breaking cmake/mingw builds