rewrite ncdu style logic to fix bugs