Checking OS before taking screenshot on gauge-ruby