submodule add: fix handling of --reference=<repo> option