Allow directories to be specified with or without trailing slash.