Add correct confs. Dynamically assign redis conf directory. Fix object closure issue