Use absolute path for generating index