Don't use exec() anymore, steal improvements from cj123's fork, updated bootstrap, other small fixes/improvements.