fs-tests: use TEMP if TEMPDIR not defined (windows compatibility)
fs-tests: accept 'EPERM' as well as 'EACCES'.