Ensure doxygen tagfile name is set

As doxygen tagfile name is an expansion variable in the doxygen
configuration file template, it needs to be set prior to configuring
that file.

Fix order of setting tagfile name and configuring template file.