Update file type regular expressions

I believe files such as `.jshintrc` are causing issues. Updating these regular expressions to check end of string should help.