bugfix in the install script

Those are minor bugfixes that fix the installtion script. I've just tested it on Debian Jessie on ARMv7 (Cubietruck) and now it has worked smoothly.