capture git revision when compiling and log on startup