Support override homedir in template