fix #11371: adjust script delete to target specific script file name

fixes https://trac.openmicroscopy.org.uk/ome/ticket/11371 :  try the python commands given there.