Fix issue storing relative path for the index file