Use env in sample release scripts

This fixes a bug that would not allow the examples to be run on OS X. I tested 10.9 Mavericks, and the onboard bash version 3.2 does not support declare -A, which prevents the scripts from being executed.

With the use of env, a newer bash version can be installed ie via homebrew.