Try to be smart about target for dired operations.