Fixed problem of not adding directory to the list when a quick cd after creating of new shell