Remove the trailing slash of a path where the path is not "/". New Path::append_element convenience function. Fixes #1744