speed up convenience replacement functions

Apparently regex matching in bash is extremely slow. The number of bash
regex matches can be drastically reduced with an additional invocation
of `grep'. In my tests the time taken to complete
fuzzy_replace_filedir_xspec was reduced from about 4 seconds to just a
few milliseconds.

Fixes #4.