Not sure I understand the relevance of getpwuid() here.  It returns a `struct passwd *` whose `->pw_dir` might be "/data"; is that what you meant by its return ?  Did you mean getcwd() ?  If it's called by GetDefaultWorkDir(), a comment there would be apt, but a comment here is rather opaque !