Apply patch from Chris that fixes creation of temp directory when access to
$HOME is prohibited