Improve cygwin listener shell script