shouldn't you keep this value in a property to avoid creating a new process each time the support of Pty is checked ?