Remove extra parent directories