pub fn expand_user(path: &str) -> String
Expands a path that starts with ~ to the user’s home directory