build: fix bad file descriptor issues with the verbosity changes