Some fixes so that the package manager can be run without dependencies installed.