fixed a bug in myrepo.commands._build_srpm called from myrepo.commands.genconf, and added test cases for init when ctx['genconf'] is True