Fixed appRoot finding from index.js.