Likewise, we should avoid os.path.split here.