Fix file and directory select in minibrowser