Directory checking and redis connectivity