Make max_display_path_length also consider the progress display