Bug fix for the Phone Gap Build Platform