autogen: don't use readlink -f

This is not portable. We are only interested in the basename, let's
just use $PWD instead of `.`.