app: expand environment variables in the sourced method

This allow the use of environment variables in most commands, including
run and restart hooks.

Closes #456.
check-fmt: remove -e from bash call

Sometimes, vet will return non-zero status. We already handle failures
using the $status variable.