fixed dired hook bug and removed cruft.