Improve NAND flash detection