imaging: Delete all postinstall scripts when deleting master

and not only the first one...