Use the correct deps directory when building templates