rewrote getFs() to return proper values

The function now uses per OS specific functionality to get the correct
filesize and the divisors of the filesize for MB have been adjusted to
divide by 1024*1024=1048576 instead of 1024000.
Also added a Gigabyte divisor for bigger files.