fix check of ping; put log in home directory