Just a quick reply for the interested who where involved.
Setting the HOME and USER variables solved it:
# ... rest of the script
We found a thread about someone trying to accomplish something similar in an init script. And since hotplug uses procd it was worth a shot.
I did assume that some default environment is set for a system with mostly only one user; but one should not assume since it runs headless.