replaced print_cloud_init_log by more general function print_remote_file...

... + get_instance_by_group_and_status is renamed to get_instances_by_group_and_status and returns a list matching instances now