publichd: refined get-script to silently drop errors