Fix: changing working directory only when running qgen