corrected workDir generation