Support for directories with slash.