Rewrite the check for libdpdk