Fix that wrong FD was queried for istty

This caused the roller to not work for most tasks