Do not loop through both work and stageout directories if we are only checking the stageout directory.
Do not loop through both work and stageout directories if we are only checking the stageout directory.

matz-e/lobster,matz-e/lobster,matz-e/lobster