Improved check_blacklist. Fixed bug in get_files.