fixed missing new line with --noconfirm
externalize getversionedpkgs()
general cleanup