fixed the PLATFORM variable to work with ruby 1.9+