improve hook installer

improved reporting
check for existing hook and verify configuration
repair improperly configured hooks