cwm.sh scan function update