Fix segfault when pkg is runned with unknown command
Fix segfault when pkg is runned with unknown command

Open343/pkg,junovitch/pkg,en90/pkg,skoef/pkg,en90/pkg,khorben/pkg,skoef/pkg,khorben/pkg,junovitch/pkg,khorben/pkg,Open343/pkg