add a check for LWP::UserAgent so that we can avoid crashing the script on systems without LWP