Fix callback scope issue and add update method to syncPaths