Revert "Skip temporary directory when target directory is known"

This reverts commit 028ee18b851497f8aede55004bcdcc5c16f087cc.