Refactor grain code to remove string handling using bash

Change-Id: I8496328f9deccf36eea957ac45bc31ff7036ed57
Related-Prod: #PROD-26015 (PROD:26015)
1 file changed