Fix https://github.com/garden/tree/issues/184