Set DNS resolution timeout to 6 seconds to speed up bootstrap
Fix a minor issue of bash shell IO redirect