add check_files by Ruby