I must say: It is called twice! Once in an early stage and a mount to "/run/user/${DEF_UID}/media/sdcard" is not possible at that time. Thats why I coded a little on mount-sd.sh and generate two files containing the processid of the call.