add missing trailing / for temp directory