Fix chdir in loop

1 job for master in 11 minutes and 5 seconds (queued for 1 second)