install elasticsearch only when necessary

verify that elasticsearch has not already been installed before downloading