(dir_name): Compute append_dot using path, not newpath