Two improvements

1) When getting the head revision, first expand the given parameters by executing environments.exapnd() on them. that would output the git ls-remote command better.

2) Temp directory not always gets deleted even if we define them to be deleted. I think there was a problem with the condition. It got accidentally dependent on whethere "store" variable is null or not.