CB-5584 Fix git clone of not working on windows.

Suspect the issue was setting CWD to a tmp path before its created.
Based on pull request: https://github.com/apache/cordova-plugman/pull/16
CB-5034 document registry functions in plugman