Make appRoot dynamic