Bug 962969 -- [email] build: make_gaia_shared.js should use source dir for shared dependency scanning

Uses srcDir instead of buildDir, and makes sure a shared resource is only added once to the shared.js array.