Make max number of tty devices configurable