make phonegap stuff in build script optional