Fix potential bug with leading dot and glob match
Handle unreachable target host more gracefully