I like to use a text file in the directory where the script resides. Use this file to hold any path or variable information that would differ in test mode and production mode. The script can then read the text file in its current directory and get the info it needs.