Fix syspkginstall code