Update hook for detecting changes within the UX repo

Tested locally on my machine ok.