display git version
added cache cleaning to cron job
write to temp file, then rename

this should avid problem when multiple people try to build the same
download at the same time
various style fixes