remove trailing slashes and prepend /usr/local/bin