Some mumbo from phonegap build system..