Do not store sub packages of "add-local" packages and fix removeLocalPackage.