check/search directories for subdirectories