using spawn() instead of fork()

same as #37 but for the 'rewrite' branch