Checks the data directory is set and returns it

get_data_dir()