Fixes relative paths.
Fixes to match phonegap api.