Adjustements for dependency installation script

- Fail script if installation of package fails
- git package is called git-core on Lucid

Change-Id: I004278dbc04a5933999e89dc449d8f8bdfdd10c7