Improve repo size calculation

I have libraries of more than 2GB that were displayed with a negative size.

This PR fixes this and also adds the first digit to the formatted file size (as in Seahub).