Issue #1948584 by greg.1.anderson: fix bug introduced by #1939982, that breaks drush on MinGW and some non-bash shells