use new get code_dir method
Merge pull request #13 from dongweiming/modify_hooks_post_receive

use new get code_dir method