Bugfix #21 + Updated script to build a phone gap distribution