Use pushd/popd in Firefox plugin

To ensure that the build returns to the correct location at
the end of the addon execution.
Merge pull request #337 from travis-ci/ha-bug-firefox-pwd

Use pushd/popd in Firefox plugin