templates: Fix bash completion for directories.