Fix bugs in config.xml generation for phonegap app and revise the way FileTarget's get virtual target's to rebuild.