added errorlevel checking for tcpdump and removed requirement for awk