Changed data_dir to platoform data dir.
Updated regexp for data_dir change.