Fix file deletion script