Make template path platform-agnostic