refactor(cli): move version option check

Move the version check to optimist's check() method

Do the check for the version option in the optimize check function