Updated cordovaBuild to update the android project before build if necessary