Fix for inability to remove files