add Paths.dirname method to Paths helper