add baha home hook
don't reuse regex, it will cause problem
Merge pull request #12 from mmis1000/master

add baha home hook and bug fix