Replaced overload with AnyStr or Union type in os/path module

Resolves #436