build.sh: allow to run a post-build hook