various publish-elasticsearch.sh bugfixes

-cd to directory
-cut './' from ids
-use proper xargs switches (-P instead of -p)
-quote * to prevent shell expansion