[PATCH V7 3/5] kdumpctl: Move file modification check logic in check_system_modified()