Makeflow chdir new

modify the initialization of variable change_dir. 

change_dir initialized as NULL, and chdir is called when change_dir is not NULL.