This is dictated by the SAMP standard:

```
The default location of the lockfile is the file named ".samp" in the user's home directory. However the content of the environment variable named SAMP_HUB can be used to override this default.
```

so if ``SAMP_HUB`` is not defined, we have to look in the home directory.