Corrects target directory