update end.sh:add cd $hookspath/