Use the absolute path of emacs in the Makefile.PL.