Fix chdir in loop

1 job for master in 11 minutes and 5 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
passed test #974

00:11:05