fixes issue with readFileSync stat size on *nix