Refactor and add mathcheck

Can also be written as:

```bash
else
    cat << EOF
Please make sure tcpdump is installed and has enough permissions.
Under Linux, there are several options, including:"
a) Running setcap cap_net_raw=ep /usr/sbin/tcpdump"
...
    EOF
```
Use what you like the most.