Stricter greedy matching and validity checking

Fixed period matching, stricter matching on directories, and fixed greedy star character matching only #s
Note: Fairly sure that Emacs doesn't make ?\#* or .*\.\#* files on line 9 and instead matches filename.#extension