Changed ping() call to get_fact() call in app_install and app_restore calls.