added one last fix to handle destinations without a trailing /