I'm actually going to refactor this to using a call to ruby to retrieve the fact to eliminate the pseudo-tty issue.