Improve `workbench` command error message

This will check the `package` argument of the `workbench` command and output a more friendly message if the package name is not correct.
I also added some tests here.

Solve #4606