Fix script so file is truly empty