pub fn get_pwd(dir: Option<&Path>) -> PathBuf
Returns a Pathbuf of current working dir or the dir if provided.
It’s to be used with exec()
exec()
get_pwd(None);