Couple of permissions fixes and a (currently) pointless way of calculating the size of files over 2^32.