modified spinner method in utils.sh (not waiting when not under TTY)

Modified utils.sh, spinner method to look beyond the local TTY for the PID it is supposed to wait on. This is neccessary when not running under a TTY (Called by PERL script)