whitespace clean up on advisories script

This commit is just whitespace and formatting into idiomatic Ruby.

Looks like there is a little bit of dead code in this script. If it's in use, should probably be cleaned up.