remove ./lib from templates and shims