Revert "change template to use cwd"

This reverts commit ad41be1457fd72bdbfa90a55cee4dc1b5a0ec10e.