Add templates path to requirejs task. During development, .tmp is mapped to the root, so asynchronous module lookup works. During optimization, it needs to be mapped 'manually'.