GROOVY-6211: Fix failing Process tests on windows