Checking for trailing slash in tempdir closes #204