Refactored extracting redis executable to tmp dir.