fixed two minor bugs

- support -pre release version string
- wrong order of Git SHA