libglusterfsclient: handle intermediate path components which are symlinks properly in glusterfs_glh_realpath.
libglusterfsclient: handle intermediate path components which are symlinks properly in glusterfs_glh_realpath.

- while building the realpath, if the intermediate path happens to be a
    symbolic link, the content of link was being appended at dirname (path),
    instead of appending to intermediate path.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 237 (If any of the path component other than the last one, happens to be a symbolic link glusterfs_glh_realpath does not construct correct path.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=237

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster