ec2-tester bug fix for sh

fixing bugs related to difference between bash and sh

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>