Make pwd and readlink work also when run with an unreadable parent dir