uname exists in /bin on Ubuntu. As such, the installation fails. The script determines the OS without specifying the complete path to uname. Do the same in order to determine ARCH.