use the global to ensure the correct path is selected
Merge pull request #1348 from rossriley/file-browse-improvements

use the global to ensure the correct path is selected