[TIMOB-16675] Added same required check to --workspace-dir.