fix: build-install tty detection