Make phonegap build more strict