pretty much guaranteeing temporary file overwrites on parallel builds. Use mkstemp() instead which creates the files atomically.