Added a shell hook for the actuall directory change.