Fix template directory path.