get parent of pwd