Stop the script if any intermediate step fails.
Reinstate some bits to make file: URLs work.