Refactored Cordova build file generation and copying.