update_imc.sh: missing check
*_duplicate: fix bug