Correctly parse destination path if path contains the name of the item.