Make test more portable, MacOSX returned tmp dir with a trailing slash, stupid.