Fix fetching sources from git

Signed-off-by: Joe Stringer <joestringernz@gmail.com>
Fix error logging output

Signed-off-by: Joe Stringer <joestringernz@gmail.com>