Temporary files: use mkstep if available instead of tmpnam (fix #277).