My last commit on this file (21ca27d) checks for the existence of nonsense files - this was originally to check the sed path works.
21ca27d