External path problem

I have an swf called main.swf located in de following directory: c:/main/main.swf

In main.swf I load an external swf called external.swf wich is located on c:/main/files/external.swf

In external.swf I load an external jpeg.
The path to the jpeg file in external.swf is written as follows: “./images/foto.jpg”

Everything works fine if I run external.swf but If I run main.swf the external foto isn’t loaded because the document root of external swf is now suddenly c:/main instead of c:/main/files

Is there any solotion for this problem? I would really like to know ontherwise I have to change the paths in about 40 external files!

Thanx in advance!