Fix permission issues related to testing with the static site.

Also, generally improve the error handling of startup errors when an
external command fails.