Browsing for a directory now works properly