Use --repos-path to generate on-demand cmdline
So we can avoid special environment case. Also this fixes my installation
as the HGK_REPOS_PATH was not recognized and the default value "repos" without
any absolute path was used.
Reviewed at https://reviews.imfreedom.org/r/2429/