fix: run hook.d dirs in build env according to settings