Convert path to posixpath instead of os.path