Fixed bug of get_working_directory, read CWD enviroment variable can't work.