Ruby script to convert nmap xml into one-line-per-port csv output