avoid duplicated pkg_instance check
allow custom script to change sources before packaging, use it to generate ejabberd's configure