make r2swf hook work properly

swf2html() will only produce src='somefile.swf', thus not knowing the directory that the file is in. We can do some hacks here to tell src the directory location.