build: Fix uninstall by treating newlines as list delimiters