changed the spec of myrepo.commands._init_workdir and related updates