Fix upload path when namespace is set