deducing dictionary path should not use global find and replace

Ran into a bug when the fasta index (".fa") was also a substring in the full path.  Small change using regular expressions to replace only the file suffix.