try 2 at building to staging.
fixed wrong var for phone gap build in deploy script