fixed a bug that a wrong path name has been added to PATH environment