Detect the shell on Windows better.