fixed dirname in the cloned path