Change dir to framework dir during runtime

Before test execution the working dir is changed to the actual dir
of the framework, because most calls assume it's executed from there.

Finally the initial dir is restored.