Fixes chunk size for linux vs darwin
Merge pull request #3 from tomsteele/master

Fixes issue with chunk size on darwin and linux