Fixes #3628, Array out of bounds in simple dir chooser

- hide ok button when diving into a directory
Merge branch 'release'