if compiled for MacOS - use the Mac path separator to get the base file name - don't append .ttf if no dot in the file name (plus small typo fix and error message enhancement)
if compiled for MacOS
- use the Mac path separator to get the base file name
- don't append .ttf if no dot in the file name
(plus small typo fix and error message enhancement)

yorung/XLE,xlgames-inc/XLE,yorung/XLE,xlgames-inc/XLE,yorung/XLE,yorung/XLE,xlgames-inc/XLE,xlgames-inc/XLE,yorung/XLE,xlgames-inc/XLE,yorung/XLE,yorung/XLE,xlgames-inc/XLE,xlgames-inc/XLE,yorung/XLE,xlgames-inc/XLE