Add $_PWD_ variable for keep the initial entry directory of program function.