Agent configs

Fixed directory methods, add data_directory to global_file.