Switch directory when tasks are queue
Switch directory when tasks are queued