Revert "Don't rewrite relative paths for cordova builds."

This reverts commit 3f821867d0bd86633da9e2db40d42ad445b16597.