Add chroot, chdir, and nice attributes
Use chroot instead of su for user switching since it's simpler for
pidfile tracking and program execution.

Also fix a typo in $NAME vs $name ($NAME isn't a thing).

Tests still passing. Woot.