Move is_truenas() to build/nano_env.

build/nano_env needs to make use of it, however most
of our code pulls in functions.sh AFTER nano_env.