Change Emacs home directory

Use HOME environment value if it is specified.
Otherwise, use return value of getHomeDirectory.