Lots ot changes in create_pt_dir.pl