fix for linux where more than one level of symbolic link exists