minor stylistic change - use block version of Dir.chdir when visiting subdirectories in sequence