fix bug in Machine.runHook()
force psuedo terminal '-t' for ssh commands
updated example