Allow a single argument, rather than an array

There's no benefit (and no test for) ensure_packages('foo') breaking, therefore I have fixed this so you can supply either a single value or an array..