Set dired variable when dired loads.