Allow usage of a local scratch temporary filesystem for temporary directories based on system configuration