Fix "md" for directories with spaces