phone.sh: added sanity check for links command