Bugfix for a home directory ending with a slash.
This happens seldom on Unix-like systems, in particular when
(expand-file-name "~") => "/", but it happens more often on some
proprietary system where HOME might be something like "d:/".