function AddBackslash(const S: String): String;
Returns the specified string with a trailing backslash added, unless the string is empty or already ends in a slash or backslash.