Configure log directory and rename TOP_DIR