Fix change directory problem on apps starts when tasks are parallelized