Make ./do more robust and add support for Raspberry Pi

Add support for downloading node.js on Raspberry Pi. Tested and works on the Pi (Raspbian).

I've also run ./do through http://www.shellcheck.net/ static analyzer and fixed everything it complained about 
(the testing was done AFTER the cleanup).