Bug 1070442 - Support building gaia apps in parallel

Try to avoid using getInstance to get aggregatePrefix (see aggregateJsResources() )