pub fn state_prefix(path: &Path) -> String
Build a bash prefix that sources the state file if it exists.