What assumptions are being made here? What if there isn't a `tmp` directory in the working dir?