Issue #2023451 by junedkazi: Add hook_requirements() to ensure a valid temporary directory and it is writable