Fix support for the -d argument.