Fixes git branch not reset correctly.
Fixes silencing error return codes.
refs devopsconsulting/vdt.version#1