Use chpwd_functions to avoid modifying chpwd
Merge pull request #3 from xuhdev/patch-1

Use chpwd_functions to avoid modifying chpwd