Make fix_b2g_stack.py work with the new stack format.

WARNING: this needs to land at the same time as the patch in https://bugzilla.mozilla.org/show_bug.cgi?id=1062709, otherwise DMD will be broken for B2G.