Fix regex for the file extensions

A dollar sign was forgotten to include. It cause an error when the target directory contains invalid matched files such as Vim swap files (ex. `.filename.coffee.swp`).