Minor formatting changes & creates packages dir if doesn't exist.