I often write `dirname(dirname(dirname(path)))`, I think it would be reasonable to have `dirname(path, 3)` do this.