Node plugin - improved check for script existence.