Fix ping timeout handling and ignore automake files