Adding work-around for empty app banks and support for PEBBLE_ID environment variable.