Fixed adding a local package when no other packages are installed yet.