Don't debug on a daemonized master

Only run pry() if we have a tty.