Fix expanding snippets in lib/ directory.