The targetDirectory variable must be available in the 'stageOnePackageFile' procedure.