fix module/template paths