Use LAVA_PROXY for git and bzr clone

This commit complete the work done in 33bc1c711bf4bd1004891cbeeff79b0f8ad64a5a

Change-Id: Ifec28b55154150dcf1f74fe0b1973a160e7bf86b
Fix for annotated tags.

Drop the timedate as this isn't useful
for looking up the commit hash.

Change-Id: I9ff2e02fb0ac573bdfc7d36bce755a65e1b0c706
(cherry picked from commit fa1f36650a4b2204d5b28f13f94560febf77b61a)
Fix temp directory for unit tests

Change-Id: Iafa3a7b3c854e3be45e219bf4cec8874ebfc41fa