Fix preparing MinGW toolchains function