Avoid use of strcasecmp()

It isn't really necessary and isn't always available.

Signed-off-by: Steve Bennett <steveb@workware.net.au>