make repo_dir optional, default=root; fix issues in writing to repo root
make repo_dir optional, default=root; fix issues in writing to repo root

SalesforceFoundation/CumulusCI,e02d96ec16/CumulusCI,e02d96ec16/CumulusCI,SalesforceFoundation/CumulusCI