Use correct variable name for $data_dir