fixed how to resolve template file

And there you go. But wait, I don't understand why we should remove `somename/:somestringhere`. But I think it's safe for now. Thanks.