fix file size computation on non-Windows platforms