Replace `hostname` and `whoami` by method calls
This reduces the (lightweight, but sometimes overlooked) dependency on these executables, which really is not necessary.
This reduces the (lightweight, but sometimes overlooked) dependency on these executables, which really is not necessary.