Adding support for symlinks

Fixes #6094

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
hmm, I am not sure how this works? When I tried it with incorrect input the test still passes. [ "$(readlink /lexists)" == "XXYYZZ" ]