Adding MIT licensed SimpleGlob and SimpleOpt 3.6.
Replacing use of getopt() and glob() with portable SimpleOpt and SimpleGlob.