Update task_path.cpp

Compile fix