Fix filchooser issues

This implements what is mentioned in https://github.com/kivy/kivy/issues/1817