Fix game clients failing to find system directories when path has a trailing slash.

A string is a valid directory with or without a trailing slash. This means we can return either: prefer without, as the occasional game client author tends to concatenate without checking for the trailing slash.