Could you use the libgit2 style and put the thing we're checking first?

If `sysconf()` returns 0, it won't have set the errno so the error message would be wrong. We should be checking for `sc_page_size < 0`.