Bug 906184: Fix APP= when running tests for nested apps.

See:  https://bugzilla.mozilla.org/show_bug.cgi?id=906184