fix [#22920] Clicking folder icons doesn't work in File browser and append * issue was that on windows stat requires the trailing slash removed, even with mingw. (since we are after ahoy, putting this into extra #define, code cleanup will follow after release)