Fixed issue #26 (Replacing an installed pkg multiple times).