ostream for paths; fix parse metadata path