Fix broken bash completion of local refs.