Tweak variable references
Move template directory to project root