Added handling of -v for version output
Fixed missing .c_str() call
Removed commented out code
Fixed indentation
Merge pull request #839 from codingkevin/version-output-fix

Added handling of -v for version output