Add a better check if the current file is in the list of accepted extensions.
Merge branch 'origin/dev'