Use exec() instead of ``.

Fixes #952