fixes #8162 - scan classes directories recursively