I think we define a Msf::Config.data_directory in https://github.com/rapid7/metasploit-framework/blob/master/lib/msf/base/config.rb