Add a method for get working directory in class QTermWidget