Fixed file opening problems due to wx.Dialog.GetDirectory (only returned home directory).