[PATCH 09/12] test: Use paths in __STATEDIR__ instead of 'temp' and 'tempdir' directives