"readlink -f" is a GNU extension. On OSX (where we try to run the test
suite, too, courtesy of travis CI) it does not exist.
Not sure why we ever added it in the first place (symlinks work, you
know) so just drop it entirely; there is no need to canonicalize things
here.
pidfile=${tmpdir}/nbd.pid
tmpnam=${tmpdir}/nbd.dd
mydir=$(dirname $0)
-certdir=$(readlink -f ${mydir}/certs)
+certdir="${mydir}/certs"
cleanup="$2"
PID=""