branches: 1.2.4; 1.2.8;Fix checks for RELEASEDIR (and xxxxIMGBASE) variables to perform itonly on live_image or install_image targets. PR toolchain/45864