getPwd in utils.c
merged