fixing repl command to work on non-windows platforms