index.js: clean up configuration selection path

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>