TTYPath is needed for proper utmp registration of the shell to receive wall messages. (cherry picked from commit a9c97bbb) (cherry picked from commit 6076f379)