Added new command for console app: get-version.

Fixed a minor bug in DeployTerminalAppDeploymentTask.
Implemented obtaining latest terminal app target folders.