Export variables separately in init.d

This allows commands to have variables in their arguments, like `cmd
$PORT`

Feedback welcome -- this does pollute the internals of the init script more, and I'm not sure if there's way to get feature parity in other init systems.