Now changes to tmp working directory correctly