Adaptations for Symfony/Console 2.2 and minor fixes

These modification allow to use RMT wich Symfony Console 2.2 and fix some minor issues (localised git output, missing exception code) which caused the tests to fail on my machine.