Make option lowercasing C89 compliant
Fixed bug in directory field wildcard expansion (h/t StiX)