Use switch for OutputFormat in DumpVersion
Use switch for OutputFormat in DumpVersion

This should fix the bug where the version is dumped as both json and
text when using output-format=json.

skarpdev/dotnet-version-cli