check IGNORE_FILES on get_files
Merge pull request #1144 from idning/master

Check IGNORE_FILES on get_files. Closes #1130.