make sure temp path has a trailing slash