add emacs to path; conditionally add paths if path exists