added basestring option to checkip

Change-Id: Ic4f80eb1cac913e3278ff5588d18c2f35b7c4827