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.
For example, if a preference is set at the "user" level and the user changes
the value via UI, the preference will be changed at the "user" level. If it's
set in a .brackets.json file, the preference will be changed there.
If the preference is defined only at the "default" level, it will be set
at the next higher level of precedence ("user" level in our setup).
This is a fix for #6595.