Add trailing slash in FTP root path when missing

Fixes #6093