ExcludeTrailingPathDelimiter
Returns a path name after removing any backslash character at the end