validate workingDirectory