check if the target path is the same as current cdf path to avoid deletion and copying the same cdf #8