checkout-index: handle "--no-prefix" option