Updated method for replacing unknown OS types