Partial normalisation of hooks.txt