Ensure timestamp always properly converted to int

In windows, `git log -1 --pretty=format:'%ct'` would sometimes return
the timestamp surrounded by quotes, so it wouldn't be properly converted
to an integer. The new command seems to work in all cases.