Get data dir from bot, not static variable

Fixes namegen to get data directory from bot.data_dir, not static var.