Fixed parallel calls mentioned in #34

You could DRY this up a bit by using a module like https://github.com/sindresorhus/temp-write FWIW :)