Small improvement for option -d when using files from a non-local
directory