When moving up, recursively check whether previous item is a directory and select its last child
When moving up, recursively check whether previous item is a directory and select its last child

Fixes atom/tree-view#1020

jarig/tree-view,atom/tree-view