directory change handler added and rvmrc handler copied from cd.fish