write current build immediately after obtaining SHA
write current build immediately after obtaining SHA

Prevents issues with the last_build not having a SHA when
something fails before the command is executed.

defunkt/cijoe,defunkt/cijoe,joshuapinter/cijoe,defunkt/cijoe,joshuapinter/cijoe,ryuk/cijoe,benhoskings/cijoe,ryuk/cijoe