fixing build process so it works with elasticsearch plugin install