pub fn valid_script_segment(segment: &str) -> bool
One directory or file name in a script id: lowercase, digits, hyphens and underscores, as the scripts carried over from Linutil are named.