Remember that on Maemo most binaries are just wrappers around maemo-launcher. Thus they inherit the environment from the maemo-launcher instance, and not the one from the current shell.