Fixed issue which might cause generating errornous /etc/ttys.