Script fixes, fixes for output redirection typos, better error handling in install script.