Move most part of the build from wscript to pebble_sdk
Fix the issue when no data are provided