Fix snippet loading in build

@lennartcl