Make sure to include t/lib when generating git hook scripts