share/bcf_utils.py: fix bug in extract_index(), which failed for names ending with 0 e.g. PJB0.