Fix overwriting, when installing PKG files

Now properly removes the directory and tries to continue installation.