Fixed --to format bug in name-value-get

When --to field was set to name-value, the output was being set
incorrectly to the path_value writer.
Merge pull request #7 from petermoz/master

Fixed --to format bug in name-value-get