Different kernel folder name require on boot

Hi All,
We have a device which has yocto 1.8 image inside nand flash. We have built an image at yocto 2.4 version. We use the same kernel files and build our rootfs with yocto. When we want to boot from sdcard, it searchs kernel files in different folder like following. We changed folder name like it and it successfully runs but what is the problem for this state?

SD Card Boot --> Linux version 3.14.28-1.0.0_ga+v1.14.143+20190517135423+gf28f4af
NAND Boot --> Linux version 3.14.28-1.0.0_ga+v1.14.143+20190517135423+g7c0f25d