checking for connection to github before attempting to update