more verbose output and path fix

fix an error when path ends with a '/'
only call `self.len_paths()` once and assign it to some temporary variable