Agent configs

Fixed directory methods, add data_directory to global_file.
shoudlnt it contain a default path