Always flush async output before exit

Resolves #162.
Merge pull request #167 from Carthage/fix-version-command

Always flush async output before exit