Fileout Variable help

Hi everyone,
I'm having trouble setting up a fileout variable to automatically append the current working directory to the name of the fileout.
If the fileout name is  XX.mov shake would add "presentworkingdirectory"_XX.mov

I found this through the nreal.h file
    image FileOut(image, const char *imageName, const char *fileFormat = "Auto", ....);

Will I get the results I'm looking for by modifying the above line into a new .h file? Or would this need to be in a plist or .tcshrc file?
I have searched and read about setting up env variables here on the forum and have also read through the shake documentaion.
But I'm still confused.

I thought it might be something like
    image FileOut(image, const char *imageName, "$PWD"const char *fileFormat = "Auto", ....);
but it isn't (I keep getting errors when trying to launch Shake.)

Anyway if someone can steer me in the right direction I'd really appreciate it.

Thanks so much!

i know how you can make a macro to do an add script. you can make a separate script for a custom fileout node and when you click the toolbox button it will load the script into your current project with the settings you are looking for without messing with your default settings. it is much safer and can give you many more options.

I did that for myself so if you want i can send you the files with a brief explanation on what commands you need to change in the UI header to match your computer.