Update main.js

Validating if the file update is inside of the project.

Actually when u navigate between folder inside of brackets a state.json file is modified (this file control the state of the folders, folder is expanded or collapsed) this do that the browser refresh all the time u navigate between ur folders with this fixed the extension will only refresh when the modified file is inside the project path.