1. Copy "resolv.conf" before running apt-get update / yum update.
Without this DNS is probably not available/working.
2. Copy /etc/sudoers from the host, if we're installing sudo.
Source common.sh from the parent directory if the global installation
isn't found.
This allows "make test" to succeed *before* the tools are installed.