Fixed a bug creating directories within target-dir

If target-dir is not ., the ArchiveInstaller fails to create them.