fix method call to os for 0.8.x