improve "make package" robustness in Makefile

This is a fix for LOGSTASH-2264