Fix defect where destination paths are not constructed correctly.