If you did a ./launcher rebuild app and there were no errors and your site is still on 2.4.x then it sounds like you rebuilt the wrong site, though you might try doing a
cd /var/discourse
git pull
git checkout main
./launcher rebuild app
If you view source on your site, does it show 2.4.0.beta7 in the metagenerator tag?