use popen gem for windows support