Set lib dirs for Git hooks before chdir