pass correct relative and absolute paths to emacs