Improve error handling of git process to commit installation of application. Mainly of use in tests