toolchain_util: fix bash syntax when running as root

Apparently expanding an empty string before a variable assignment forces
that assignment to be interpreted as a command instead. Instead of an
empty string use env as our sudo alternative when running as root.
Merge pull request #317 from marineam/sudo

toolchain_util: fix bash syntax when running as root