Fix Mono support

There was a simple problem preventing it from resolving templates properly.