CSPACE-6278: Use the system temporary directory location, rather than hard-coding '/tmp'.