Correctly expand tilde ("~") in path name when setting the emacs PATH.