Fix new command not running from cli since pkg was undefined