append slashes to doc paths if missing.