remove trailing slash from CONFIG_DIR