This fixes some problems we had with nbytes that we fixed on my branch

If you want me to fix the file permissions I can do that as well.