Handle paths in platform-agnostic way.