Windows compatibility

Changed Unix/Linux commands to Ruby alternatives.