Attempt using bash on windows if it is available, fixes #2831