Detect missing files listed in list.txt

Also moved definition of secure before trying to parse Url tags, one
less warning from Python.