Use long rather than int for max file size variable

Fixes issue #1