Fix creating secrets file.