Add configurable hook script path + fix mistakes and omissions (OMS-510)