fix for https://github.com/adobe/brackets/issues/6931

The fix is to cutoff the leading slash on a module name.
Test is not working due to missing projectRoot in the ProjectManager. I've experimented with different test setups by loading a project, but this didn't solve the issue. Perhaps this can be fixed in a different PR.