improved init script genrations in clean-tty script