fix dired-single to work in a dedicated window (disable and re-enable dedicated state when changing directory)