Added config file checking