Fixes bug in cli where opt is undefined
Updates version