Slash the end so that is_dir() still works.