fixed bugs in installRedis.

Installation now flows.