Fixed issues 14 and 13 : exit codes where not checked properly on some git operations during delivery. Added tests.