fix bug introduced in https://github.com/composer/composer/pull/2375
Merge pull request #2467 from kimlai/bugfix_githubdriver

fix bug in GitHubDriver
Added error handling and error messages around missing perforce driver, invalid username/password
incorporated change to Perforce: Capture output, stopping errors showing up if p4 is not available