[redis] make sure the proper init script is generated