Solaris 10 doesn't include readlink. Use awk to parse the path names