Fix bug in pathnt.c that caused the results of GLOB to be downcased under some circumstances.