Fixes issue with hook installation after a reload command.