Add missing BASE_DIR variable