Refactor away overloads in 'os' stubs

Fix #435