Revert "second try to make the path to the template absolute"

This reverts commit 2a1805fda6b6c2ceaf5cff48be6a1e57c43a2ac2.