"which" command returns paths with two consecutive slashes

Solution 1:

It looks like that you need to make the directories in $PATH not have a trailing /

ie you has /usr/local/bin/ in your path and it should be /usr/local/bin