Here’s how to fix this:
# install jhead
sudo apt-get -y install jhead
# install node.js and svgo
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g svgo
Updated the install script to install jhead as well, need to figure out how to install svgo without adding node as dependency.