add TMP_DIR in settings_shared