Revert "Revert "dx download -r: only reconstruct the last path element""

This reverts commit 031efe2b1a36f20431a4b693e04533773c111859.

Erroneously reverted commit