Fixes #164, use exec instead of spawn for io redirection