Use pushd/popd in Firefox plugin

To ensure that the build returns to the correct location at
the end of the addon execution.