check-system.sh added is_port_listening and port_should_not_be_listening functions