Change how to get stdin and stderr from groovy external process