fix shell syntax error in template