Probably your path is different on different login sessions. I suppose when you start the local shell it sources different rc's for the shell.