Do not use functions in prepare_guest_template.sh

Change-Id: I7d8ba9287a2500a5d26a8df7f886f6e2cd6faa5b