handle the case when index file is created on /dev/shm