use better index file detection

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
try another index file fix

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>