Moreover, paramstr(0) doesn't always work on Linux. (e.g. on some filesystem types, specially remote ones). OS X and FreeBSD also don't.
Since libraries are not memory mapped on *nix, the way they are on Windows, this whole concept doesn't exist. (in Windows you can't delete a loaded .dll, but you can delete an active .so on Linux)
In general it is best to redesign so that this functionality is not necessary.