Refactoring of run_scheduled_service_check() function

Removed some unnecessary indentation. 
Also fixed a wrong variable reference when logging on check_file_size().