Introduce skip_char() function to utils/str
Fix determining of executable files on Windows

Particularly parsing the last item of $PATHEXT environment variable.
Rename constant {PATHEXT_EXT -> PATHEXT_EXT_DEF}
Merge branch 'fix-win-pathext-parsing'