make relative paths compatible with phonegap