Use os.path instead of posixpath