procd: fix/clean some conditions in nand.sh