added directory analyze

- more error checking
- change regex for vBulletin < v3.8.5