ciniparser: fix ctype.h usage, and lazy strrchr.