Pass build_dir to hook scripts