Optimized some structures of check_log_files.py script. For ticket #86.