Updated the `ld` function to show the parent and current directories as well