fix TTY (make subdir optional)

seems as if i did not test the other patch W(