restore BASE_DIR for app templates