Get the path to the repository, which is either the default one in the work dir, or a user-specified one in args.