Changed realpath for readlink in update script