Fix sed getting confused by / in TMPDIR path