Replace all_files_under with method that doesn't modify in-place