Properly replace paths in configuration templates with URLs