Handle escaping/eval in a different way.

Uses the standard shell script template, Bash safety options, &c.
Reintroduced call to  to allow time for application changes to be reflected in mesos.