added $ to end of file name ext regexprs