Fix #2062 Be more diligent about validating trailing "/" existence in HOME and XDG_DATA_HOME env vars

--HG--
extra : amend_source : f857f2c2d14cf1fca0d5a5f4ca95c8acef79797e
make the examples in the doc comments match the actual output of the SDL_GetPrefPath function