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:/".
Merge branch 'master' into comint-redirect
Test case "bash-completion-addsuffix check directory" now works on Windows/DOS.