Ping script: fix bug with % sign