Move template loading into utils and make it independent of current dir