Using / instead of ~ when backend dir is not specified
Adding some check when generating the destination URL with FTP backend