Modified behaviour in case there is no HOME to fallback to /tmp only