dcredbook fix for vgf filenames err caused by mkstemp