Bug fixes for extension manager

To @dangoor. Fixes #3859, #3861, #3865, #3866, #3868.

Note that for #3868, I now force paths coming back from package installation to always use forward slashes. This seems to be consistent with how we deal with paths in the rest of Brackets, but it's a little hard to tell. I filed #3872 on that general problem.