Write dependencies to index file