add onbuild hook for cpanm