Improved the rakefile's os detection.