20140318
support using regex to match directory name and bug fix. known bug: directory iterate sequence