Fix for #7374 project prefs path breaking project open.

This fixes the bug in two ways:

* globmatch no longer uses the "matchBase" flag for directories
* the current editing file is set to the new project directory *after* the project
  scoped preferences is changed

Either one individually would fix it, but both prevent potential other problems.