Adding support for symlinks

Fixes #6094

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
You could just `[ -L /link2dir ]`
Or possibly better `[ "$(readlink /link2dir)" == "testfile" ]`