get_data_dir and fixed syntax errors