Fix for xdebug conf being overwritten

Requires xdebug be installed first before replacing the template.