fix test for new Phonegap-friendly appcache path
only clean phonegap dir if platform=phonegap
make all CSS url paths Phonegap-friendly (i.e., relative paths)