add GLOBAL_DATADIR

Signed-off-by: xiehuc <xiehuc@gmail.com>