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.
Fix compile on windows
revert "X11: add SDL joystick until we have a better solution", functionality should be handled by "Joystick API (PR:2370 - https://github.com/xbmc/xbmc/pull/2370)"