Fix bit width issues with filesystem driver