Ensure that gem is installed

Building this on a cubie with linaro as a clone of the BB. The script doesn't install GEM, added in.