Revert "change template to use cwd"

This reverts commit 765324744301a77dc4d6f5e34b6f9cf466fd1b66.