Adjusting $PATH in /etc/profile does not affect root
You need to run a login shell (or run a non-interactive shell, but that's not what you want) to load /etc/profile
.
Use
su - username
or in case of root
su -
to do this.
-
is the same as -l
or --login
and makes the shell a login shell.