Fixed bug with excluding some file extensions