Added check to verify if the head plugin for elastic search was already installed.