fix path formatting

My tiled exports reference image files located more than one directory up from the export location. 
ex: image = "../../img/tiles/BlackAndWhite.png",

Currently STI is unable to reference these images and errors out.  I nabbed this bit of code from penlight although slightly modified. STI should be able to find images located at any depth.