check IGNORE_FILES on get_files(issues-1130)

make IGNORE_FILES work for site generating!