Agent configs

Fixed directory methods, add data_directory to global_file.
this will not be printed gracefully