changes public dir and test for export_dir