fixes to scm_rev generation to make it conistent with windows build