Factored out default route check function to work on OpenBSD as well