Fixed error handling

* Improved error handling for function exit code 1 instead of 0
* Fixed git fetch command at deploy_component_new.sh
Change-Id: Ief988bea547575480ec47afc033d8b6da49a595d