use env var for indexes dir if provided
create directories as needed
resolve merge conflict in package.json