Use 'which' module on 'spawn' commands to avoid problems on Windows