set BASE_DIR based on app config