Make glob_recursive() 2x faster

replace is_dir() with substr() using GLOB_MARK to designate
subdirectories