Update regular expressions for file type checking

* Match file extension to end of string
* Match file extension with one or more leading characters