Added remote_* functions to make script easier to read.  Also modified script to install script, if possible, otherwise it exits and prompts the user to install it.