not work , string_find not is know by enigma
EDIT
good i have find
getenv("PWD")this give a directory of executed bash script, for this fact:
GOOD
-this environment variable give full path of folders in linux
NOT GOOD
-this can't be view directly by enigma becouse the environment variable give a folder of enigma, for view, place the file of game in folder and execute
EDIT2
under windows the variable is CD,but i don'know why the program not start , wine problem or other
i try under windows if i switch

getenv("CD")for the explanation
linux
PWD print working directory
windows
CD current directory