Need help related with a program

Remove the brew version.

Also PATH is checked left to right and you put the “new” one to the outer right, so the old one is probably seen first. You need to put the new one to the left, or make sure remove the old one.

Also, As a rule of thumb, you want user installations to be always be found before system installation, therefore in most cases you want to have PATH=/new/entry/bin:${PATH}.