add no-dev option to licenses command

For us it is more usefull to get the list of no dev requires. So i add the option to the command.
the boolean operator is ``&&``, not ``and``.


and this does not work properly. ``$this->packageList`` contains packages, not package names