pub fn normalize_dir_path(input: &str) -> String
Normalizes directory separators to / and removes trailing separators unless the input is a root.
/