pub fn validate_path( command_path: &str, allowed_dir: &Path, current_dir: &Path, ) -> Option<PathBuf>