clearFileEachBuild only clears the file if it exists