Adding support for symlinks

Fixes #6094

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
this is redundant with the line 740: `if id1, err = .... `
Either remove this check, or leave it but then you should just have `id1, err := buildImageFromContext(...)` above the check.