Add second permission check to setup_tmpdir function
drwxr-xr-x - trunk