Make vgcfgbackup_output work on Ruby 1.9 and later

da00c95 fixed the behaviour of vgcfgbackup_output to work with Ruby
1.8's popen3, but this had the side effect of breaking it on 1.9 and
later. This patch allows it to work with either form of popen3.