get pwd in script