readlink introduced to reach original file if $0 is symlink

even though the comment says '$0 may be a softlink', it isn't being handled. readlink -f will return fully resolved path.