fix code style in scripts