Fix the issue of the null path for the working_dir.