Added profile-dir to common known options. Added function to validate ar...

...guments passed to command line and break the execution in case the argument is not part of known options or if the argument requires value, but the user had not passed one. Change options to use function from common helpers to validate and parse yargs arguments.
You may print the folder name as a courtesy to the user - especially nice if the CLi was used in an  automation script and the user is debugging by reading build logs.