Implement of linux command pwd