Check user profile's plugin-repositories when looking for templates.

Fixes #1510.