$targetDir should be full path.