configure: replace $(realpath emacs) with $(cd emacs && pwd -P)