Moved timeout checking code to be directly after ttl decrement, fixed traceroute