Mirror original path structure in the tmp directory

This is what tsc also produces when you use --outDir, so we'd better
follow it or we end up with ENOENT.