Fixed 'os' compatibility.