Optimize the text output of /api/critpath to follow @abadger's advice