fix treatment of path names