The check for the existence of the remote target folder is a bit more clever now.