Redmine#4640: fix curl/LWP usage confusion and install once per run