jtest: improve gethostbyname error message
TS-2736: detect max file limit in common code