Fix code for phonegap check.